<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/layout/contentLayout.xhtml">

	<ui:param name="param_pageTitle"
		value="#{messages.luyuan_crm_menu_order}" />

	<ui:define name="road">
		<span>配方详细信息</span>
	</ui:define>

	<!-- content -->
	<ui:define name="content">
		<rg:areaPanel>
			<h:form>
			<rg:titlePanel id="formulaDetailTP" headerTitle="配方信息">
				<h:panelGroup id="formulaDetail">
					<rg:fieldSet column="one" >
	                    <rg:outputText id="formulaName" label="配方名称" value="#{formulaAction.formula.name}"  />
	                    <rg:outputText id="productType" label="配方类型" value="#{formulaAction.formula.productType.typeName}"   />
	                    <rg:outputText id="beforeBreakfast" label="临早餐前" value="#{formulaAction.formula.beforeBreakfast}" escape="false"  converter="#{htmlConverter}"/>
	                    <rg:outputText id="afterBreakfast" label="早餐后" value="#{formulaAction.formula.afterBreakfast}" escape="false"  converter="#{htmlConverter}"/>
	                    <rg:outputText id="beforeLunch" label="临午睡前" value="#{formulaAction.formula.beforeLunch}"  escape="false"  converter="#{htmlConverter}"/>
	                    <rg:outputText id="afterLunch" label="午餐后" value="#{formulaAction.formula.afterLunch}"  escape="false"  converter="#{htmlConverter}"/>
	                    <rg:outputText id="beforeDinner" label="临晚餐前" value="#{formulaAction.formula.beforeDinner}" escape="false"  converter="#{htmlConverter}"/>
	                    <rg:outputText id="afterDinner" label="晚餐后" value="#{formulaAction.formula.afterDinner}" escape="false"  converter="#{htmlConverter}"/>
	                    <rg:outputText id="beforeSleep" label="临睡前" value="#{formulaAction.formula.beforeSleep}" escape="false"  converter="#{htmlConverter}"/>
						<rg:outputText id="oldDrugBill" label="顾客原服用药单" value="#{formulaAction.formula.oldDrugBill}" escape="false"  converter="#{htmlConverter}"/>
						<rg:outputText id="customerRequire" label="顾客保健要求" value="#{formulaAction.formula.customerRequire}" escape="false"  converter="#{htmlConverter}" />
						<rg:outputText id="purpose" label="本配方保健目的" value="#{formulaAction.formula.purpose}" escape="false"  converter="#{htmlConverter}" />
						<rg:outputText id="lifeNote" label="生活注意事项" value="#{formulaAction.formula.lifeNote}" escape="false"  converter="#{htmlConverter}" />
						<rg:outputText id="remarks" label="备注" value="#{formulaAction.formula.remarks}" escape="false"  converter="#{htmlConverter}"/>
						<rg:outputText id="price" label="原价" value="#{formulaAction.formula.price}" />
						<rg:outputText id="specialPrice" label="特价" value="#{formulaAction.formula.specialPrice}" />
						<rg:outputText id="products" label="保健品清单"  converter="#{htmlConverter}" max="256" validateRule="length" value="#{formulaAction.products}" 
							escape="false"/>
						<rg:outputText id="note" label="注" value="#{formulaAction.formula.note}"  escape="false"  converter="#{htmlConverter}" />
						<rg:outputText id="createTime" label="创建时间" value="#{formulaAction.formula.createTime}" 
							datePattern="yyyy-MM-dd HH:mm" converter="#{dateConverter}" />
					</rg:fieldSet>
				</h:panelGroup>
				
			</rg:titlePanel>
			<div class="panelButton">
				<h:commandButton styleClass="button larger" value="返回" action="/luyuan/formula/listFormula.jsf" />
			</div>
			</h:form>
		</rg:areaPanel>
	</ui:define>
</ui:composition>